package com.erji.admin.service;

import com.erji.admin.domain.dto.AppletBindDTO;
import com.erji.admin.domain.dto.AppletLoginDTO;
import com.erji.admin.domain.entity.AppletUserPO;
import com.erji.admin.domain.vo.AppletLoginResultVO;
import com.erji.admin.domain.vo.AppletUserVO;
import com.erji.common.mybatis.persistence.SuperService;


import java.util.Map;

/**
 * @author lingjian
 * @description: TODO
 * @date 2023/12/17
 */
public interface AppletUserService extends SuperService<AppletUserPO> {

    /**
     * 会员绑定
     *
     * @param appletBindDTO
     * @return
     */
    void bind(AppletBindDTO appletBindDTO);

    /**
     * @Author Lynkin
     * @Description 会员小程序登录
     * @Date 2023/12/17
     * @Param [jsCode]
     * @return com.ivnin.system.domain.vo.AppletLoginResultVO
     **/
    AppletLoginResultVO login(AppletLoginDTO appletLoginDTO);

    /**
     * 获取当前登录会员信息
     *
     * @return
     */
    AppletUserVO getAppletUserInfo();

    /**
     * 小程序获取手机号
     *
     * @param appletLoginDTO
     * @return
     */
    Map<String, String> getPhoneNumber(AppletLoginDTO appletLoginDTO);
}
